<?php

/**
 * Settings Model
 *
 */
class Settings extends AdminAppModel {
	
	/**
	 * Database table name
	 * @var string
	 */
	public $useTable = 'settings';
	
	/**
	 * Primary Key
	 * @var string
	 */
	public $primaryKey = 'key';
	
	/**
	 * Display field
	 * @var string
	 */
	public $displayField = 'key';
	
	/**
	 * Validation rules
	 * @var array
	 */
	public $validate = array (
		'key' => array (
			'notempty' => array (
				'rule' => array('notempty')
			)
		),
		'value' => array (
			'notempty' => array (
				'rule' => array('notempty')
			)
		)
	);
	
}
